package com.ruoyi.lession.service;

import com.alipay.api.AlipayApiException;
import com.ruoyi.lession.common.ResultInfo;
import com.ruoyi.lession.entily.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface QuestService {
    ResultInfo findByQuestList(Integer pageNum, Integer pageSize);

    ResultInfo insert(Quest quest);

    ResultInfo QuestUpdateStutas(Quest quest);

    List<Title> findByTitleList();

    void save(QuestionnaireAddUtil questionnaireAddUtil);

    void saveBatch(List<QuestTitle> questionnaireTopics);

    ResultInfo deleteId(Long id);

    List<TitleContentUtil> topicUtilList(Long id);

    ResultInfo sumcum(List<ContentSum> contentSumList);

    ResultInfo repoetList(Integer cnum);

    ResultInfo findByLessonReportList(Long rid);

    Integer orderFromInsert(Order order, HttpServletRequest request);

    void Alipay(Integer oid, HttpServletResponse servletResponse);

    String aliNotify(HttpServletRequest request) throws AlipayApiException;

    String payList(String outtradeno) throws AlipayApiException;

    List<Quest> findQuestListByIds(Long ids);

    List<TitleContent> findTitleCotentListByIds(Long ids);

    void savePoi(List<Quest> quests);
}
